package cn.xyfmzmy;

/**
 * 抛异常拒绝策略
 */
public class ThrowRejectHandle implements RejectHandle{
    @Override
    public void reject(Runnable rejectCommamd, MyThreadPool threadPool) {
        throw new RuntimeException("阻塞队列满了");
    }
}
